package com.yidu.hbatsft.dao;

import com.yidu.hbatsft.domain.AtsAttachAudit;
import com.yidu.hbatsft.domain.AtsAttachmentCondition;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
/**
 * ClassName:AtsAttachAuditMapper
 * Package:com.yidu.hbatsft.dao
 * Description: 附件审核功能映射
 *
 * @Date 2019-11-04 10:31
 * @Author 陈熠
 */
@Mapper
public interface AtsAttachAuditMapper {
    int deleteByPrimaryKey(String auditId);

    int insert(AtsAttachAudit record);

    int insertSelective(AtsAttachAudit record);

    AtsAttachAudit selectByPrimaryKey(String auditId);

    int updateByPrimaryKeySelective(AtsAttachAudit record);

    int updateByPrimaryKey(AtsAttachAudit record);

    /**
     * 根据附件表id查询
     * @param attachmentCondition 附件表id
     * @return 审核表集合
     */
    List<AtsAttachAudit> selectByAttachId(AtsAttachmentCondition attachmentCondition);


    /**
     * 根据附件表id查询审核总行数
     * @param attachmentCondition 附件表id
     * @return 审核表行数
     */
    int selectByAttachIdCount(AtsAttachmentCondition attachmentCondition);
}